Skip to main content

All Questions

Tagged with
0votes
0answers
1kviews

Extract series of XML elements' values into an array

This code needs to extract data from in XML file. Specifically it needs to iterate over it, looking for a node called CHARGE_CODES that repeats over and over and ...
gbasic's user avatar
2votes
1answer
2kviews

Java CSV to XML converter

I'm relatively new to programming and I was trying to work a project. I would like recommendations of how to annotate or comment my project and any improvement I could make to it, any suggestion is ...
Codepressed's user avatar
1vote
0answers
2kviews

Escaping invalid XML characters (e.g. for the Java DOM API)

I want to save and load an arbitrary Java String in a Text node in a XML file using the Java DOM API. The ...
stonar96's user avatar
1vote
1answer
182views

Building DOM tree from XML, checking/updating player's average score

This is the first time I'm parsing an XML file. So I will be grateful for any suggestions on how my code may be improved. Or if you could suggest another approach to solving this problem. One other ...
Lasamba's user avatar
5votes
2answers
769views

Populating an XML form with user input

I am attempting to create XML forms using user input to populate certain areas that would appear when loaded into a STIG viewer. Right now everything is working enough for me to create this and have ...
NewToThis's user avatar
8votes
1answer
15kviews

Converting partial XML (Node List) to a String

I have a need to extract a part of XML tree (everything under root) and convert it to a string. (The result string will be later pasted inside ...
PM 77-1's user avatar
3votes
1answer
2kviews

Validate XML using XSD, a Catalog Resolver, and JAXP DOM for XSLT

Background As this related question describes, there does not appear to be a canonical way to validate XML files against an XSD then subsequently transform them using an XSL template with file paths ...
Dave Jarvis's user avatar
2votes
2answers
1kviews

DOM parser implemented from scratch

I have implemented a DOM parser. I would like any comments for optimizing, improving, and making the code coherent to best coding practices. ...
JavaDeveloper's user avatar
7votes
3answers
3kviews

Handling various types of nodes when traversing a DOM tree

How to minimize the following code using java's features ... looking for some workaround with the switch-case statement I've seen several question regarding switch-case design pattern / best ...
user534976's user avatar

close